package com.smmisia.article.service;

import com.smmisia.article.entity.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.smmisia.article.request.CommentAddRequest;
import com.smmisia.article.response.commentResponse;
import com.smmisia.common.Result.Result;
import jakarta.validation.Valid;

import java.util.List;


public interface CommentService extends IService<Comment> {

    Result<List<commentResponse>> commentList(int articleId, int type);

    Result<String> add(@Valid CommentAddRequest request);

    Result<String> delete(int id);

    Result<String> like(int id);
}
